<template>
  <div class="page">
    <project-header></project-header>
    <div class="info-main">
      <div class="info-top">
        <div class="info-top-item">
          <div class="info-top-item-title">开课时间</div>
          <div class="info-top-item-content">
            2020/12/05 03:09 至 2020/12/07 23:42
          </div>
        </div>
        <div class="info-top-item">
          <div class="info-top-item-title">打卡时限</div>
          <div class="info-top-item-content">0:00-23:59</div>
        </div>
        <div class="info-top-item">
          <div class="info-top-item-title">班主任</div>
          <div class="info-top-item-content">李大钊、曹雪芹、Jackie韩雪</div>
        </div>
      </div>
      <div class="info-bottom">
        <div class="info-bottom-title">简介</div>
      </div>
    </div>
  </div>
</template>

<script>
import projectHeader from "../../components/newProjectHeader";
export default {
  components: {
    projectHeader,
  },
  created() {
    this.getProjectData();
  },
  methods: {
    getProjectData() {
      this.$axios.post("/browseRecord/create", {
        itemType: 1,
        itemId: this.getQueryVariable("projectId")
      }).then(res => {
        
      })
    },
    getQueryVariable(variable) {
      var query = window.location.search.substring(1);
      var vars = query.split("&");
      for (var i = 0; i < vars.length; i++) {
        var pair = vars[i].split("=");
        if (pair[0] == variable) {
          return pair[1];
        }
      }
      return false;
    },
  },
};
</script>

<style lang="less">
html,
body {
  width: 100%;
  height: 100%;
}

.page {
  height: 100%;
  background-color: #f2f4f8;
  display: flex;
  flex-direction: column;
}

.info-main {
  padding: 24px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 987px;
  margin: 0 auto;
  flex: 1;
}

.info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.info-top-item {
  width: 323px;
  padding: 18px;
  background-color: #fff;
  border-radius: 11px;
}

.info-top-item-title {
  color: #333;
  font-size: 15px;
  font-weight: bold;
  border-bottom: 1px dashed #cccccc;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.info-top-item-content {
  font-size: 12px;
  color: #999999;
}

.info-bottom {
  flex: 1;
  background-color: #fff;
  border-radius: 11px;
  padding: 18px;
}

.info-bottom-title {
  color: #333;
  font-size: 15px;
  font-weight: bold;
  padding-bottom: 6px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #cccccc;
}
</style>
